package zl8.com;

/**
 * Created with Intellij IDEA.
 * Description:
 * User:张蕾
 * Date:2023-06-07
 * Time:0:40
 */
public class Test {
    public static void main(String[] args) {
         CPU cpu=new CPU();
         cpu.setSpeed(2200);

         HardDisk hardDisk=new HardDisk();
         hardDisk.setAmount(200);

         PC pc1=new PC();
         pc1.setCpu(cpu);
         pc1.setHd(hardDisk);
         pc1.show();
    }
}
